<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.prime.com.tr/ui"
	template="/WEB-INF/jsf/template.xhtml">

	<ui:define name="content">
		<h:form prependId="false">
			<p:commandButton image="back" ajax="false" immediate="true" style="margin-right:20px;" value="#{tiersmsgs['navigation.back']}" action="/jsf/tiers/viewTiers.xhtml"/>
		
			<p:panel header="#{tiersmsgs['caractpm.title']} Details" style="margin-top:10px">
				<p:messages />
				<h:panelGrid id="detail" columns="2" styleClass="grid" columnClasses="label,value">
					<h:outputText value="#{tiersmsgs['caractpm.cpmtiers.title']}:*" />
							<h:outputText value="#{TiersComponent.caractpm.cpmTiers}"/>
					<h:outputText value="#{tiersmsgs['caractpm.cpmnomsociete.title']}:" />
							<h:inputText id="tiers_cpmnomsociete" value="#{TiersComponent.caractpm.cpmNomSociete}" required="false" label="tiers_cpmnomsociete" />
					<h:outputText value="#{tiersmsgs['caractpm.cpmformejuridique.title']}:" />
							<h:inputText id="tiers_cpmformejuridique" value="#{TiersComponent.caractpm.cpmFormeJuridique}" required="false" label="tiers_cpmformejuridique" />
					<h:outputText value="#{tiersmsgs['caractpm.cpmcodenaf.title']}:" />
							<h:inputText id="tiers_cpmcodenaf" value="#{TiersComponent.caractpm.cpmCodeNaf}" required="false" label="tiers_cpmcodenaf" />
					<h:outputText value="#{tiersmsgs['caractpm.cpmsiren.title']}:" />
							<h:inputText id="tiers_cpmsiren" value="#{TiersComponent.caractpm.cpmSiren}" required="false" label="tiers_cpmsiren" />
					<h:outputText value="#{tiersmsgs['caractpm.cpmsiret.title']}:" />
							<h:inputText id="tiers_cpmsiret" value="#{TiersComponent.caractpm.cpmSiret}" required="false" label="tiers_cpmsiret" />
					<h:outputText value="#{tiersmsgs['caractpm.cpmtierscontact.title']}:" />
							<h:inputText id="tiers_cpmtierscontact" value="#{TiersComponent.caractpm.cpmTiersContact}" required="false" label="tiers_cpmtierscontact" />
					<h:outputText value="#{tiersmsgs['caractpm.cpmqualitesociete.title']}:" />
							<h:inputText id="tiers_cpmqualitesociete" value="#{TiersComponent.caractpm.cpmQualiteSociete}" required="false" label="tiers_cpmqualitesociete" />
					<h:outputText value="#{tiersmsgs['caractpm.cpmetatsociete.title']}:" />
							<h:inputText id="tiers_cpmetatsociete" value="#{TiersComponent.caractpm.cpmEtatSociete}" required="false" label="tiers_cpmetatsociete" />
					<h:outputText value="#{tiersmsgs['caractpm.cpmchiffreaffaire.title']}:" />
							<h:inputText id="tiers_cpmchiffreaffaire" value="#{TiersComponent.caractpm.cpmChiffreAffaire}" required="false" label="tiers_cpmchiffreaffaire" />
					<h:outputText value="#{tiersmsgs['caractpm.cpmnbrsalarier.title']}:" />
							<h:inputText id="tiers_cpmnbrsalarier" value="#{TiersComponent.caractpm.cpmNbrSalarier}" required="false" label="tiers_cpmnbrsalarier" />
         			<h:panelGroup>
         				<p:commandButton image="save" ajax="false" style="margin-right:20px;" value="#{tiersmsgs['navigation.save']}" action="#{TiersComponent.saveTiersCaractPM(TiersComponent.tiers.tieTiers, TiersComponent.caractpm)}"/>
         			</h:panelGroup>
				</h:panelGrid>
			</p:panel>

		</h:form>
	</ui:define>
</ui:composition>